#ifndef __DY_ASSERT_H__
#define __DY_ASSERT_H__

#include "dy-fatal-error.h"

#include <stdio.h>

#define DY_ASSERT(condition)                                                                       \
    do                                                                                             \
    {                                                                                              \
        if (!(condition))                                                                          \
        {                                                                                          \
            printf("DY_ASSERT failed, cond=\"" #condition "\",");                                  \
            DY_FATAL_ERROR_NO_MSG();                                                               \
        }                                                                                          \
    } while (0);

#endif
